import { _decorator, Component, Event, Node } from 'cc'
import EventManager from 'db://assets/Runtime/EventManager'
import { CONTROLLER_ENUM, EVENT_ENUM } from 'db://assets/Ts/Enums/index'
const { ccclass, property } = _decorator
@ccclass('ControllerManager')
export class ControllerManager extends Component {
  handleCtrl(evt:Event,type:string) {
    EventManager.Instance.emit(EVENT_ENUM.PLAYER_CTRL,type as CONTROLLER_ENUM)
  }
}
